<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        let user = {
            id:1,
            username:"张三",
            password:"123456"
        }

        // let {id,username,password} = user;
        // console.log(id);
        // console.log(username);
        // console.log(password);

        // let {id,username:name,password} = user;
        // console.log(id);
        // console.log(name);
        // console.log(password);

        let {id,...others} = user
        console.log(id);
        console.log(others)

        user.address="航头镇";
        console.log(user)

    </script>
</head>
<body>



</body>
</html>